<html>
<head>
<title>资源管理-资源列表</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<th:block th:replace="/backend/layouts/common-head::iframe-common-js-css"></th:block>
<style>
</style>
</head>
<body class="iframe-body">
	<div class="iframe-main">
		<div style="margin-bottom: 20px;">
			<a id="uploadRepertory" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-add'" style="width: 120px">上传资源</a>
			<input type="file" name="UploadForm[file]" id="uploadfile" style="display: none;" />
			<a id="addOutsideLink" href="javascript:void(0);" class="easyui-linkbutton" style="width: 120px">新增外链图片</a>
		</div>
		<div class="form-search" style="display: none;">
			<div class="search-item" style="width: 1020px; padding-left: 0;">
				<input id="search-label_id" name="search-label_id" value="-1">
      			<input id="search-type" name="search-type" value="-1">
				<input id="search-filename" class="easyui-textbox" name="name" labelWidth="60" style="width: 220px;" data-options="label:'资源名：',labelAlign: 'right'">
				<a href="javascript:void(0);" onclick="searchdata()" class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width: 80px">查询</a>
				<a href="javascript:void(0);" onclick="resetdata()" class="easyui-linkbutton" style="width: 80px">重置</a>
			</div>
		</div>

		<div id="main-gallery">
			<ul class="card" id="gallery"></ul>
		</div>

		<div style="margin-bottom: 36px;">
			<div id="repertory-pagination"></div>
		</div>

		<div style="display: none">
			<div id="dlg-repertory" class="easyui-dialog" title="编辑资源" style="width: 620px; height: 512px;"
				data-options="closed:true,modal:true,border:'thin',buttons:'#dlg-repertory-buttons'">
				<form id="fm-repertory" method="post" novalidate style="margin: 0; padding: 20px 50px">
					<div style="display: none;">
						<input id="repertory-id" name="id" class="easyui-textbox" style="width: 100%">
					</div>
					<div style="margin-bottom: 10px">
						<input id="repertory-original_filename" name="original_filename" class="easyui-textbox" required="true" labelAlign="right" label="资源名称" style="width: 80%">
					</div>
					<div style="margin-bottom: 10px">
						<input id="repertory-label_id" name="label_id" value="0">
					</div>
					<div style="margin-bottom: 10px; display: none;">
						<a href="#" class="easyui-linkbutton" onclick="reuploadRepertory()" style="margin-left: 80px; width: 120px">重新上传</a>
						<input type="file" name="UploadForm[file]" id="reuploadfile" style="display: none;" />
						<span class="remark green" style="position: relative; top: 2px;">已重新上传！</span>
					</div>
					<div class="image-box"
						style="margin-bottom: 10px; padding: 8px; border: 1px solid #e5e5e5; min-height: 200px; display: flex; justify-content: center; align-items: center;">
						<img onerror="javascript:this.src='/assets/backend/image/error.jpg';" src="" style="max-height: 215px; max-width: 500px;" alt="">
					</div>
				</form>
			</div>
			<div id="dlg-repertory-buttons" style="display: none;">
				<a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="saveRepertory()" style="width: 90px"> 保存</a>
				<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg-repertory').dialog('close')" style="width: 90px">关闭</a>
			</div>
		</div>
	</div>
	<th:block th:replace="/backend/layouts/jcms-public::jcms-public"></th:block>
	<th:block th:replace="/backend/layouts/jcms-upload::jcms-upload-outsideLink"></th:block>


	<script type="text/javascript" th:inline="javascript">
		/*<![CDATA[*/
		var repertoryDeleteUrl = [[@{/backend/repertory/index-delete.html}]];
		var repertoryUpdateUrl = [[@{/backend/repertory/index-update.html}]];
		/*]]>*/
	</script>
	<script type="text/javascript" th:src="@{/assets/backend/custom/js/backend/repertory/index.js}"></script>
</body>
</html>


